package com.mysterymall.Controller;

import com.mysterymall.Common.Comp.Log;
import com.mysterymall.Common.Utils.Result;
import com.mysterymall.Service.PaymentClassService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName com.mysterymall.Controller
 * @Description
 * @Author HuangWX
 * @Time 2023/12/18  11:01
 */
@RestController
@RequestMapping("/paymentClass")
public class PaymentClassController {

    private final PaymentClassService paymentClassService;

    /**
     * 构造器注入
     * @param paymentClassService 支付方式服务
     */
    public PaymentClassController(PaymentClassService paymentClassService) {
        this.paymentClassService = paymentClassService;
    }

    @PostMapping("/getPaymentClass")
    @Log
    public Result getPaymentClass(){
        return paymentClassService.getPaymentClass();
    }
}
